Einhugur Word Plugin for Xojo

Document.AddNewParagraphStyle Method

Adds new paragraph style to the document.

AddNewParagraphStyle(
   id as String,
   name as String,
   basedOn as EinhugurWord.ParagraphStyle) as EinhugurWord.ParagraphStyle

Parameters

id
Id of the new style. (This must be unique within the document)
name
Name of the new style.
basedOn
Base style which this style should inherit from or nil if there should be no base style.

Returns

EinhugurWord.ParagraphStyle
Newly crated ParagraphStyle object instance.

Remarks

This function can throw WordException.

See Also

Document Class